package com.idlefish.flutterboost.action;

import android.text.TextUtils;

import androidx.annotation.NonNull;

import com.idlefish.flutterboost.Messages;
import com.idlefish.flutterboost.intef.MethodCallAction;

import io.flutter.plugin.common.MethodCall;
import io.flutter.plugin.common.MethodChannel;

public class MethodActionProfileData implements MethodCallAction {

    @Override
    public void doAction(Messages.NativeRouterApi api, @NonNull MethodCall methodCall, @NonNull MethodChannel.Result result) {
        String params = api.getProfileData();
        System.out.print("MethodActionBaseData-----------------------------------"+params);
        if (!TextUtils.isEmpty(params)) {
            result.success(params);
        }
    }
}
